package exceptions;

public class NotPossibleDueToDeathException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	
	String s;
	
	public NotPossibleDueToDeathException(String name) {	
		super("Knoten: " + name + " ist tod.");
		s = "Knoten: " + name + " ist tod.";
	}
	
	@Override
	public void printStackTrace() {
		System.err.println(s);
	}
	
	public String toString(){
		return s;
	}
}
